package com.api.league.dao;

import com.api.core.ApiMapper;
import com.api.league.model.LeagueTransferRecord;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author RenQiang
 * @date 2021/6/2
 */
@Mapper
public interface LeagueTransferMapper extends ApiMapper<LeagueTransferRecord> {
    /**
     * 分页查询转会记录
     *
     * @param leagueId
     * @return
     */
    List<LeagueTransferRecord> findByPage(@Param("leagueId") Long leagueId);

    void deleteByLeagueId(@Param("leagueId") Long leagueId);
}
